<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCarShopTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qs_car_shop', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('')->nullable()->comment('门店信息');
            $table->tinyInteger('status')->default(1)->nullable()->comment('状态');
            $table->tinyInteger('sort')->default(0)->nullable()->comment('排序');
            $table->integer('create_date')->nullable()->comment('创建时间');
            $table->integer('update_date')->nullable()->comment('修改时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qs_car_shop');
    }
}
